package com.encyclopedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.encyclopedia.domain.Plant;

import com.encyclopedia.domain.vo.PlanVo;
import com.encyclopedia.result.JsonRequest;
import jakarta.websocket.server.PathParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author MaLiang
 * @version 1.0
 * @date 2024-04-28 19:40
 */
@Mapper
public interface AdminPlantMapper extends BaseMapper<Plant> {
    

    //修改
    int updatePlant(Plant plant);

    //新增
    int insertPlant(Plant plant);

    List<Integer> selectPlntId();

    int deletePlant(Integer id);

    Plant selectPlnt(Integer id);

    List<PlanVo> PlanList(@PathParam("commonName") String commonName,@PathParam("scientificName") String scientificName,@PathParam("start") Integer start,@PathParam("pageSize") int pageSize);

    int selectCommonName(String commonName);
}
